import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'

import { createPersistedState, createSharedMutations } from 'vuex-electron'

import modules from './modules'

Vue.use(Vuex);

const state = {
    el_:'',
    user:{},
    token:'',
    username:'',
    remain_days:'',
    call_center:'',
    date_update_time:''
    
}

export default new Vuex.Store({
	state,
  actions,
  mutations,
  getters,
  modules,
  plugins: [
    // createPersistedState(),      使用这个会报错
    // createSharedMutations()
  ],
  strict: process.env.NODE_ENV !== 'production'
})
